package com.assignwork.mapper;

import com.assignwork.entity.WorkArrangeShipCabinInfo;
import com.assignwork.vo.WorkArrangeShipCabinInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName WorkArrangeShipCabinInfoMapper
 * @Description 航运配工作业舱信息Mapper
 * @Author dujianyu
 * @Date 2023/12/22 7:51
 */
public interface WorkArrangeShipCabinInfoMapper extends BaseMapper<WorkArrangeShipCabinInfo> {
    /**
     * 根据配工Id获取信息
     * @param arrangeId 配工ID
     * @return List<WorkArrangeShipCabinInfoVO>
     * @author dujianyu
     * @since 2023/12/22 8:40
     */
    List<WorkArrangeShipCabinInfoVO> selectInfoByArrangeId(Long arrangeId);

    /**
     * 全部舱余吨
     * @param planId 计划ID
     * @param assemblyLineId 作业线ID
     * @return BigDecimal
     * @author dujianyu
     * @since 2024/4/17 16:01
     */
    BigDecimal selectAllCabinLeftTon(long planId, long assemblyLineId);
}
